#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int power(int n,int k)
{
	if (n == 0)
		return 0;
	else if (k == 0)
		return 1;
	else if (k == 1)
		return n;
	else
	return n * power(n, k-1);
}
int main()
{
	int ret;
	int n = 0; int k = 0;
	scanf("%d%d",&n,&k);
	ret = power(n, k);
	printf("%d", ret);
	return 0;
}